package com.medical.server.sickroom.service.impl;

import com.laozj.common.utils.PageUtils;
import com.laozj.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.medical.server.sickroom.dao.SickroomUserRelationDao;
import com.medical.server.sickroom.entity.SickroomUserRelationEntity;
import com.medical.server.sickroom.service.SickroomUserRelationService;


@Service("sickroomUserRelationService")
public class SickroomUserRelationServiceImpl extends ServiceImpl<SickroomUserRelationDao, SickroomUserRelationEntity> implements SickroomUserRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SickroomUserRelationEntity> page = this.page(
                new Query<SickroomUserRelationEntity>().getPage(params),
                new QueryWrapper<SickroomUserRelationEntity>()
        );

        return new PageUtils(page);
    }

}